package com.ship.common.core.exception;


import com.ship.common.core.web.domain.BaseResultCode;
import com.ship.common.core.web.domain.ResultCode;

/**
 * @author tangshixuan
 * @date 2023-8-30
 */
public final class SystemException extends BaseException {
    private final ResultCode errorCode;
    public ResultCode getErrorCode() {
        return errorCode;
    }
    public SystemException(String message) {
        super(message);
        this.errorCode = BaseResultCode.SYS_ERROR;
    }
}
